using System;
using System.Runtime.Serialization;

public class PurchaseInfo : ISerializable, IEquatable<PurchaseInfo>
{
	private string _orderId;

	private string _productId;

	private string _purchaseState;

	private string _purchasePayload;

	private long _purchaseTime;

	public string orderId
	{
		get
		{
			return _orderId;
		}
		set
		{
			_orderId = value;
		}
	}

	public string productId
	{
		get
		{
			return _productId;
		}
		set
		{
			_productId = value;
		}
	}

	public string purchaseState
	{
		get
		{
			return _purchaseState;
		}
		set
		{
			_purchaseState = value;
		}
	}

	public string purchasePayload
	{
		get
		{
			return _purchasePayload;
		}
		set
		{
			_purchasePayload = value;
		}
	}

	public long purchaseTime
	{
		get
		{
			return _purchaseTime;
		}
		set
		{
			_purchaseTime = value;
		}
	}

	public PurchaseInfo()
	{
		_orderId = string.Empty;
	}

	public void GetObjectData(SerializationInfo info, StreamingContext ctxt)
	{
	}

	public bool Equals(PurchaseInfo other)
	{
		if (orderId == other.orderId)
		{
			return true;
		}
		return false;
	}
}
